<?php
	
	class model_login extends Application{
		function __construct(){
			//load basic for model
		}
        function login($username, $password){
            $rows = return_array("SELECT password FROM dos_sys_users WHERE username = '$username' AND enable = 1");
        	if(count($rows) > 0){
        		if (phpbb_check_hash($password, $rows['password'])){
        			return true;
        		}else{
        			return false;
        		}
        	}else{
        		return false;
        	}
        	return false;
		}
	}
	
?>